-
Notifications
You must be signed in to change notification settings - Fork 1.2k
change: Add warning for ignored job args in pipeline steps #3814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Codecov Report
@@ Coverage Diff @@
## master #3814 +/- ##
==========================================
- Coverage 89.89% 89.16% -0.74%
==========================================
Files 1060 247 -813
Lines 101168 25048 -76120
==========================================
- Hits 90942 22333 -68609
+ Misses 10226 2715 -7511
|
| error_message="The step_args of ProcessingStep must be obtained from processor.run().", | ||
| ) | ||
|
|
||
| if job_arguments or inputs or outputs or code or kms_key: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we check for each individually? Otherwise the error message might get confusing
|
|
||
| JOB_ARG_IGNORE_WARN_MSG_TEMPLATE = ( | ||
| "The job specific arguments (%s) supplied to the step will be ignored, " | ||
| "because `step_args` is presented. These job specific arguments should be supplied " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: typo in presented. Should be replaced with present
| warning_msg_template = ( | ||
| "The input argument %s of function (%s) is a pipeline variable (%s), which is not allowed. " | ||
| "The default_value of this Parameter object will be used to override it. " | ||
| "The input argument %s of function (%s) is a pipeline variable (%s), which will not work. " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The obvious question here for any user will be: "why will it not work?"
We should get this reviewed by a doc writer to get the least confusing wording
|
@qidewenwhen Are you still working on this PR? Can you resolve conflicts? |
Issue #, if available: #3642
Description of changes: As indicated in the issue above, customers may mix use the two different sets of arguments relating to the new and legacy pipeline step interfaces, which causes confusions as the legacy args will be ignored silently. This PR exposes warning messages for this case.
In addition, this PR refines the warning message in
override_pipeline_parameter_varas the previous one causes confusion.Testing done: Unit tests
Merge Checklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
unique_name_from_baseto create resource names in integ tests (if appropriate)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.